import random

# 随机生成1到100之间的神秘数字
secret_number = random.randint(1, 100)

print("请猜一个1到100之间的数字:")

while True:
    guess = int(input("你的猜测: "))

    if guess == secret_number:
        print("恭喜你，猜对了！")
        break
    elif guess < secret_number:
        print("小了")
    else:
        print("大了")